package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AmazonRegionItem", catalog="Id")
public class TpAmazonRegionItem extends BaseEntity<TpAmazonRegionItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="RegionCode", nameJava="regionCode", typeDataBase="varchar")
	private String regionCode;
	@YsField(nameDataBase="MarketplaceId", nameJava="marketplaceId", typeDataBase="varchar")
	private String marketplaceId;
	@YsField(nameDataBase="CountryName", nameJava="countryName", typeDataBase="varchar")
	private String countryName;
	@YsField(nameDataBase="CountryCode", nameJava="countryCode", typeDataBase="varchar")
	private String countryCode;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="SalesChannel", nameJava="salesChannel", typeDataBase="varchar")
	private String salesChannel;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonRegionItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public TpAmazonRegionItem setRegionCode(String regionCode) {
		this.regionCode = regionCode;
		return this;
	}
	public String getMarketplaceId() {
		return marketplaceId;
	}
	public TpAmazonRegionItem setMarketplaceId(String marketplaceId) {
		this.marketplaceId = marketplaceId;
		return this;
	}
	public String getCountryName() {
		return countryName;
	}
	public TpAmazonRegionItem setCountryName(String countryName) {
		this.countryName = countryName;
		return this;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public TpAmazonRegionItem setCountryCode(String countryCode) {
		this.countryCode = countryCode;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public TpAmazonRegionItem setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public String getSalesChannel() {
		return salesChannel;
	}
	public TpAmazonRegionItem setSalesChannel(String salesChannel) {
		this.salesChannel = salesChannel;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonRegionItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonRegionItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonRegionItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonRegionItem tpAmazonRegionItem(
		String regionCode,
		String marketplaceId,
		String countryName,
		String countryCode,
		String currencyCode,
		String salesChannel,
		Integer status
			) {
		TpAmazonRegionItem entity = new TpAmazonRegionItem();
		entity.setRegionCode(regionCode);
		entity.setMarketplaceId(marketplaceId);
		entity.setCountryName(countryName);
		entity.setCountryCode(countryCode);
		entity.setCurrencyCode(currencyCode);
		entity.setSalesChannel(salesChannel);
		entity.setStatus(status);
		return entity;
	}
}